package com.aaa.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

@TableName(value = "sys_menu")
@Data
//@ApiModel(value = "SysMenu)", description = "菜单权限表")
public class Menu implements Serializable {
 private static final long serialVersionUID = 570811300850058808L;
 /**
 * 菜单ID
 */
 @TableId(value = "menu_id", type = IdType.AUTO)
private Long menuId;

//@ApiModelProperty(value = "父菜单ID")
private Long parentId;

//@ApiModelProperty(value = "父节点ID集合")
private String parentIds;

//@ApiModelProperty(value = "菜单名称")
private String menuName;

//@ApiModelProperty(value = "菜单类型（M目录 C菜单 F按钮）")
private String menuType;

//@ApiModelProperty(value = "权限标识")
private String percode;

//@ApiModelProperty(value = "路由地址")
private String path;

//@ApiModelProperty(value = "备注")
private String remark;

//@ApiModelProperty(value = "菜单状态（0正常 1停用）")
private String status;

//@ApiModelProperty(value = "创建时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date createTime;

//@ApiModelProperty(value = "更新时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date updateTime;

//@ApiModelProperty(value = "创建者")
private String createBy;

//@ApiModelProperty(value = "更新者")
private String updateBy;

//@ApiModelProperty(value = "${column.comment}")
private String icon;

/**
 * 菜单下的子菜单
 */

@TableField(exist = false)
private List<Menu> children;

}
